﻿using _2020.models;
namespace _2020
{
    internal class Program
    {
        /// <summary>
        /// 维吉利亚加密法测试
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和秘钥
            Console.WriteLine("Please enter your plaintext");
            string plain=Console.ReadLine();
            Console.WriteLine("Please enter your key");
            string key=Console.ReadLine();
            //加密
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.PlainText=plain;
            myEncoder.Key=key;
            myEncoder.Encoder();
            //输出密文
            Console.WriteLine(myEncoder.Cypher);

        }
    }
}